package com.ybkj.chat.ui.dialog;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;

import com.ybkj.chat.R;
import com.ybkj.chat.utils.ResourcesUtil;

/**
 * - @Author:  wyq
 * - @Description:  添加分组
 * - @Time:  2019/2/18
 */
public class AddGroupDialog extends BaseButtonDialog {

    private EditText editText;

    public AddGroupDialog(Activity context) {
        super(context);
    }


    @Override
    protected View setContentView() {
        View contentView = LayoutInflater.from(getContext()).inflate(R.layout.dialog_add_group, null);

        return contentView;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setAlertDialogWidth((int) ResourcesUtil.getDimen(R.dimen.x278));
        setTitleText(ResourcesUtil.getString(R.string.add_group));

        editText = contentView.findViewById(R.id.groupName);
    }

    public String getContent() {
        return editText.getText().toString();
    }

    @Override
    protected void initContentView(View contentView) {
    }

}
